import { IsNumber, IsOptional, IsString } from "class-validator";

export class CreatePermDto {
    @IsString()
    code!: string;

    @IsOptional()
    @IsString()
    menuId!: string | null;

    @IsOptional()
    @IsString()
    name!: string | null;

    @IsOptional()
    @IsNumber()
    rank!: number | null;

    @IsOptional()
    @IsString()
    remark!: string | null;
}
